home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 7
/
Aminet 7 - August 1995.iso
/
Aminet
/
comm
/
mebbs
/
unhang.lha
/
Unhang
/
unhang.rexx
< prev
Wrap
OS/2 REXX Batch file
|
1994-08-06
|
1KB
|
38 lines
/* Unhang A Locked Up Arexx Line by Larry Cloud M3001 */
c=0
call open(file,"doors:unhang/unhang.cfg",'r')
do until eof(file)
c=c+1
name.c=readln(file)
end
call close(file)
do i=1 to c
say i||". "||name.i
end
say" "
say"Enter the number of the door that is currently hung ?"
pull number
say"Enter the line that is hung ?"
pull line
quote=d2c(34)
call open(file,"doors:unhang/temp.rexx",'w')
call writeln(file,"/* Unhanging "||name.number||" by Larry Cloud M3001 */")
call writeln(file,"signal on ERROR")
call writeln(file,"options results")
call writeln(file,"DoorName = "||quote||name.number||quote)
call writeln(file,"if( ~show( 'l', 'mebbsarexx.library' ) )then do")
call writeln(file," if( ~addlib( 'mebbsarexx.library', 0, -30, 0 ) )then do")
call writeln(file," say 'Could not open library' ")
call writeln(file," exit 10")
call writeln(file," end")
call writeln(file,"end")
call writeln(file,"linenumber="||Line)
call writeln(file,"call exit_Door doorname,linenumber")
call writeln(file,"exit 0")
call writeln(file,"exit")
call close(file)
say"Press return to unhang line..."
pull bs
address command "rx doors:unhang/temp.rexx"
exit